package com.mk.bstest.service.impl;

import com.mk.bstest.domain.user;
import com.mk.bstest.mapper.UserMapper;
import com.mk.bstest.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    UserMapper userMapper;


    @Override
    public List<user> queryAll() {
        return userMapper.selectAll();
    }

    @Override
    public void insert(user u) {
        userMapper.insert(u);
    }

    @Override
    public void update(user u) {
        userMapper.update(u);
    }

    @Override
    public void delete(Long id) {
        userMapper.delete(id);
    }
}
